import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-04-09
 * Time: 15:05
 */
public class test_1 {
    public static void main(String[] args) {
        synchronized ()
        ExecutorService service = Executors.newFixedThreadPool(4);
        for (int i = 0; i < 10; i++) {
            service.submit(new Runnable() {
                @Override
                public void run() {
                    System.out.println("a");
                    System.out.println("++++++++++++++++++++++++++++++++++++++++");
                }
            });
        }

        System.out.println("main结束了");
        ThreadPoolExecutor
    }
}
